/***************************************************************************
 *   Copyright (C) 2007 by Grzegorz Latarowski, Maciej Gajewski            *
 *   g.latarowski@gmail.com                                                *
 *   maciej.gajewski0@gmail.com                                            *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

// local
#include "camera2params.h"

// =========================== camera2params =====================
/// Returns list of camera2 params description, mapped by their (formal) name
GParamsDescription camera2Params()
{
	GParamsDescription result;

	
	// ----------------- PARAM_JPEG_INTERVAL
	GParamDescription jpegInterval;
	jpegInterval.setName( PARAM_JPEG_INTERVAL );
	jpegInterval.setReadableName( QObject::tr( "JPG2k sending interval [ms]" ) );
	jpegInterval.setType( QVariant::Int );
	jpegInterval.setDefaultValue( QVariant( 1000 ) );
	jpegInterval.setMinimum( 0 );
	jpegInterval.setMaximum( 10000 );
	jpegInterval.setSingleStep( 50 );
	
	result.append( jpegInterval );
	
	// ----------------- PARAM_EXPOSURE
	GParamDescription exposure;
	exposure.setName( PARAM_EXPOSURE );
	exposure.setReadableName( QObject::tr( "Exposure [ms]" ) );
	exposure.setType( QVariant::Int );
	exposure.setDefaultValue( QVariant( 60 ) );
	exposure.setMinimum( 0 );
	exposure.setMaximum( 1000 );
	exposure.setSingleStep( 5 );
	
	result.append( exposure );
	
	
	// ----------------- PARAM_JPEG_SIZE
	GParamDescription jpegSize;
	jpegSize.setName( PARAM_JPEG_SIZE );
	jpegSize.setReadableName( QObject::tr( "JPEG2K frame size [kB]" ) );
	jpegSize.setType( QVariant::Int );
	jpegSize.setDefaultValue( QVariant( 4 ) );
	jpegSize.setMinimum( 1 );
	jpegSize.setMaximum( 200 );
	jpegSize.setSingleStep( 1 );
	
	result.append( jpegSize );

	// ----------------- PARAM_CO_CAMERA_IP
	GParamDescription coCameraIP;

	coCameraIP.setName( PARAM_CO_CAMERA_IP );
	coCameraIP.setReadableName( QObject::tr( "Co-Camera IP number" ) );
	coCameraIP.setType( QVariant::String );
	coCameraIP.setDefaultValue( QString( "127.0.0.1" ) );

	result.append( coCameraIP );

	
	
	return result;
}

// eof
